From 893576cecd09502c222563b05d8cb541bc2be297 Mon Sep 17 00:00:00 2001 From: Vladimir Kochnev Date: Wed, 1 Oct 2025 20:48:02 +0300 Subject: [PATCH] acme-acme.sh: declare staging_moved variable It's possible that staging_moved variable is undeclared while being accessed. Lets explicitly declare it. Signed-off-by: Vladimir Kochnev --- net/acme-acmesh/files/hook.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/net/acme-acmesh/files/hook.sh b/net/acme-acmesh/files/hook.sh index f6591de718..a29bade1ac 100644 --- a/net/acme-acmesh/files/hook.sh +++ b/net/acme-acmesh/files/hook.sh @@ -58,6 +58,7 @@ get) log info "Running ACME for $main_domain with validation_method $validation_method" + staging_moved=0 if [ -e "$domain_dir" ]; then if [ "$staging" = 0 ] && grep -q "acme-staging" "$domain_dir/$main_domain.conf"; then mv "$domain_dir" "$domain_dir.staging" -- 2.30.2